<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
      xmlns:layout="http://www.ultraq.net.nz/web/thymeleaf/layout"
      layout:decorator="layout/layout">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>表单</title>
    <link type="text/css" href="https://mazey.cn/cdn/bootstrap-3.4.1/css/bootstrap.min.css" rel="stylesheet" />
    <!--<link rel="stylesheet" href="../common/bootstrap.min.css">
    <link rel="stylesheet" href="../common/global.css">-->
</head>

<body>
<div class="container">
    <h1 style="margin-right: 20px;">发表博客</h1>
    <form action="/blog/addBlog" method="post">
        <!-- 右边为文本 -->
        <div class="form-group row">
            <label class="col-2 col-form-label">博客标题：</label>
            <!--<input type="hidden" name="blogauthor"  th:value="${blogauthor}">-->
            <div class="col-10">
                <div class="form-text">
                    <input class="form-control" name="blogtitle"  th:value="${blogTitle}">
                </div>
            </div>
        </div>
        <!-- 右边为文本框 -->
        <div class="form-group row">
            <label class="col-2 col-form-label">博客内容：</label>
            <div class="col-6">
                <textarea class="form-control" name="blogContent" placeholder="请输入...." th:text="${blogContent}"></textarea>
            </div>
        </div>
        <!-- 按钮 -->
        <div class="form-group row">
            <label class="col-2 col-form-label"></label>
            <div class="col-10">
                <button type="submit" class="btn btn-primary">提交</button>
            </div>
        </div>
    </form>
</div>
<!--<script src="../common/jquery.js"></script>
<script src="../common/bootstrap.min.js"></script>-->
</body>

</html>